package com.ktr.entity;

import java.util.Date;

import com.alibaba.fastjson.JSONObject;
import com.bhudy.annotation.PrimaryKey;

/**
 * @Author com.bhudy
 * @Description KtrInfo
 * @Date 2019-10-30 23:09:37
 */
public class KtrInfo {

    @PrimaryKey
    private Long ktrId;    //编号
    private String ktrCode;    //设备地址码
    private String ktrName;    //设备名称
    private Integer ktrSaveInterval;    //保存历史间隔
    private Integer start;    //开始位置
    private Integer end;    //结束位置
    private Integer step;    //步长
    private Long ktrTypeId;    //设备类型,关联ktr_type表
    private Long ktrPositionId;    //设备位置,关联ktr_position表
    private Long ktrAddressId;    //设备通信口信息,关联ktr_address表
    private String remark;    //备注说明
    private Integer status;    //状态（0正常 1删除 2停用 3冻结）
    private Date updateDate;    //更新时间
    private Long updateBy;    //更新者
    private Date createDate;    //创建时间
    private Long createBy;    //创建者

    public Long getKtrId() {
        return ktrId;
    }

    public void setKtrId(Long ktrId) {
        this.ktrId = ktrId;
     }

    public String getKtrCode() {
        return ktrCode;
    }

    public void setKtrCode(String ktrCode) {
        this.ktrCode = ktrCode;
     }

    public String getKtrName() {
        return ktrName;
    }

    public void setKtrName(String ktrName) {
        this.ktrName = ktrName;
     }

    public Integer getKtrSaveInterval() {
        return ktrSaveInterval;
    }

    public void setKtrSaveInterval(Integer ktrSaveInterval) {
        this.ktrSaveInterval = ktrSaveInterval;
     }

    public Long getKtrTypeId() {
        return ktrTypeId;
    }

    public void setKtrTypeId(Long ktrTypeId) {
        this.ktrTypeId = ktrTypeId;
     }

    public Long getKtrPositionId() {
        return ktrPositionId;
    }

    public void setKtrPositionId(Long ktrPositionId) {
        this.ktrPositionId = ktrPositionId;
     }


    public Long getKtrAddressId() {
        return ktrAddressId;
    }

    public void setKtrAddressId(Long ktrAddressId) {
        this.ktrAddressId = ktrAddressId;
     }

    public Integer getStart() {
        return start;
    }

    public void setStart(Integer start) {
        this.start = start;
    }

    public Integer getEnd() {
        return end;
    }

    public void setEnd(Integer end) {
        this.end = end;
    }

    public Integer getStep() {
        return step;
    }

    public void setStep(Integer step) {
        this.step = step;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
     }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
     }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
     }

    public Long getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Long updateBy) {
        this.updateBy = updateBy;
     }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
     }

    public Long getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Long createBy) {
        this.createBy = createBy;
     }


    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }
}
